#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QLabel>
#include<QProgressBar>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QStatusBar* statusbar = new QStatusBar();
    this->setStatusBar(statusbar);

    // statusbar->showMessage("这是一个消息",3000);

    QLabel* label1 = new QLabel("6666");
    statusbar->addWidget(label1,1);

    QLabel* label2 = new QLabel("777");
    statusbar->addWidget(label2,2);
}

MainWindow::~MainWindow()
{
    delete ui;
}

